import { configureStore } from '@reduxjs/toolkit'
import userReducer from './modules/user'
import reservation from './modules/reservation';
import cost from './modules/cost/cost';
import costuser from './modules/cost/costuser';
import doctor from './modules/doctor'

const store = configureStore({
  reducer: {
    user: userReducer,
    costuser:costuser,
    reservation,
    cost,
    doctor,
  }
});

export type StoreState = ReturnType<typeof store.getState>;
export type StoreDispatch = typeof store.dispatch;

export default store;
